﻿#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QFont>
#include <QFontDatabase>

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);

    app.setFont(QFont("Microsoft Yahei", 9));

    const int font_id = QFontDatabase::addApplicationFont(":/image/fontawesome-webfont.ttf");
    QFontDatabase::applicationFontFamilies(font_id);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}
